﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;

namespace DAL
{
    public class ChucVuDAL
    {
        public static ChucVuPublic LoadChucVuByMaCV(int MaCV)
        {
            var cv = Common.db.ExecuteStoreQuery<ChucVuPublic>(@"select * from ChucVu where MaCV=" + MaCV);
            return cv.FirstOrDefault();
        }
        public static List<ChucVuPublic> LoadChucVu()
        {
            var cv = Common.db.ExecuteStoreQuery<ChucVuPublic>(@"select * from ChucVu");
            return cv.ToList();
        }
    }
}
